package com.yf.stack.dynamiclinking;

public class Lambda {
    public static void main(String[] args) {
        Lambda lamb = new Lambda();

        Func func = s -> {
            return true;
        };

        lamb.lambda(func);

        lamb.lambda(s -> {
            return true;
        });
    }

    public void lambda(Func func) {
        return;
    }
}

interface Func {
    public boolean func(String str);
}
